package com.graduation.roombooking.vo;


import com.graduation.roombooking.validator.IsMobile;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

@Data
public class LoginVo {

    @NotNull
    @IsMobile(required = true,message = "手机号码格式错误")
    private String phone;

    @NotNull
    @Length(min = 6)
    private String password;
}
